package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DataxXchangeLogMapper;
import com.ruoyi.system.domain.DataxXchangeLog;
import com.ruoyi.system.service.IDataxXchangeLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 数据中转日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-04
 */
@Service
public class DataxXchangeLogServiceImpl implements IDataxXchangeLogService 
{
    @Autowired
    private DataxXchangeLogMapper dataxXchangeLogMapper;

    /**
     * 查询数据中转日志
     * 
     * @param id 数据中转日志主键
     * @return 数据中转日志
     */
    @Override
    public DataxXchangeLog selectDataxXchangeLogById(Long id)
    {
        return dataxXchangeLogMapper.selectDataxXchangeLogById(id);
    }

    /**
     * 查询数据中转日志列表
     * 
     * @param dataxXchangeLog 数据中转日志
     * @return 数据中转日志
     */
    @Override
    public List<DataxXchangeLog> selectDataxXchangeLogList(DataxXchangeLog dataxXchangeLog)
    {
        return dataxXchangeLogMapper.selectDataxXchangeLogList(dataxXchangeLog);
    }

    /**
     * 新增数据中转日志
     * 
     * @param dataxXchangeLog 数据中转日志
     * @return 结果
     */
    @Override
    public int insertDataxXchangeLog(DataxXchangeLog dataxXchangeLog)
    {
        return dataxXchangeLogMapper.insertDataxXchangeLog(dataxXchangeLog);
    }

    /**
     * 修改数据中转日志
     * 
     * @param dataxXchangeLog 数据中转日志
     * @return 结果
     */
    @Override
    public int updateDataxXchangeLog(DataxXchangeLog dataxXchangeLog)
    {
        return dataxXchangeLogMapper.updateDataxXchangeLog(dataxXchangeLog);
    }

    /**
     * 批量删除数据中转日志
     * 
     * @param ids 需要删除的数据中转日志主键
     * @return 结果
     */
    @Override
    public int deleteDataxXchangeLogByIds(String ids)
    {
        return dataxXchangeLogMapper.deleteDataxXchangeLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除数据中转日志信息
     * 
     * @param id 数据中转日志主键
     * @return 结果
     */
    @Override
    public int deleteDataxXchangeLogById(Long id)
    {
        return dataxXchangeLogMapper.deleteDataxXchangeLogById(id);
    }
}
